// 获取所有的td
let tds = document.querySelectorAll("td");
tds.forEach((td) => {
  td.onclick = function () {
    this.style.background = "red";
  };
});
